<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生信息管理</title>
    <script src="./js/vue.js"></script>
</head>
<body>
<div id="app">
<!--  新增学生-需要完善新增学生的事件  -->
    姓名：<input type="text"/><br/>
    年龄：<input type="text"/><br/>
    性别：<input type="text"/><br/>
    分数：<input type="text"/><br/>
    <button>添加</button>

<!--  todo 需要渲染学生表格信息  -->

</div>

<script>
    const { createApp, ref } = Vue

    createApp({
        setup() {
            const students = ref([{
                name: "Tom",
                age: 20,
                gender: 1,
                score: 78
            }, {
                name: "Rose",
                age: 18,
                gender: 2,
                score: 86
            }, {
                name: "Jerry",
                age: 26,
                gender: 1,
                score: 90
            }, {
                name: "Tony",
                age: 30,
                gender: 1,
                score: 52
            }])
            return {
                students
            }
        }
    }).mount('#app')
</script>
</body>
</html>
